package com.wt.service.impl;


import com.wt.dao.WqunCommunityBanDao;
import com.wt.entity.WqunCommunityBan;
import com.wt.service.WqunCommunityBanService;

import java.util.List;

/**
 * <p>
 * 标签表 服务实现类
 * </p>
 *
 * @author wt
 * @since 2023-09-20
 */
public class WqunCommunityBanServiceImpl implements WqunCommunityBanService {

    WqunCommunityBanDao wqunCommunityBanDao = new WqunCommunityBanDao();

    @Override
    public int isBan(String id) {
        return wqunCommunityBanDao.isBan(id);
    }

    @Override
    public WqunCommunityBan getIsBan(String id) {

        List<WqunCommunityBan> isBan = wqunCommunityBanDao.getIsBan(id);
        if(isBan!= null && isBan.size()!=0){
            return isBan.get(0);
        }else {
            return null;
        }

    }

    @Override
    public boolean save(String id) {
        return wqunCommunityBanDao.save(id);
    }

    @Override
    public boolean updateById(int id) {
        return wqunCommunityBanDao.updateById(id);
    }
}
